package com.foreknow.elmboot.controller;

import com.foreknow.elmboot.po.OrderDetailet;
import com.foreknow.elmboot.service.OrderDetailetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/OrderDetailetController")
public class OrderDetailetController {
    @Autowired
    private OrderDetailetService orderDetailetService;

    @RequestMapping("/listOrderDetailetByOrderId")
    public List<OrderDetailet> listOrderDetailetByOrderId(Integer orderId) {
        return orderDetailetService.listOrderDetailetByOrderId(orderId);
    }
}
